<!doctype html>
<html lang="zh-CH">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	{{--<meta name="viewport" content="width=device-width, initial-scale=1">--}}
	<title>央票通</title>
	<link rel="stylesheet" href="./resource/css/index.css">
	<link rel="stylesheet" href="./resource/css/user.css">
</head>
<body>
<!-- 头部 -->
@include('common.index_head')
		<!-- 个人中心 -->
<div class="cont-user">
	<!-- 个人中心头部 -->
	@include('common.user_head')
	<div class="user-center">
		<div class="main">
			<!-- 个人中心列表 -->
			@include('common.user_left')
			<div class="user-container left">
				<div class="user-title user-password user-award">
					<div class="title">
						<div class="h left">平台奖励</div>
					</div>
					{{--<div class="invite">--}}
					{{--<img src="./resource/img/user_invite.png" alt="">--}}
					{{--<a href="javascript:;" class="btn btn-invite">立即邀请</a>--}}
					{{--</div>--}}
					<div class="user-box">
						<ul class="pass-ul">
							<li class="active"><a href="javascript:;">体验金</a></li>
							<li><a href="javascript:;">现金劵</a></li>
						</ul>
						<div class="pass-main">
							<div class="pass-cont">
								<div class="hin">可用体验金：<i>￥{{$experiencesum}}</i>累计收益：<i>￥<?php if(!empty($experiencemoney)){echo round("$experiencemoney",2);}else{echo "0.00";}?></i></div>
								<div class="hint">温馨提示：体验金只能投资体验标项目，使用后可产生利息收益。</div>
								<table>
									<thead>
									<tr>
										<td>金额（元）</td>
										<td>获取途径</td>
										<td>获取时间</td>
										<td>有效期（天）</td>
									</tr>
									</thead>
									<tbody>
									@if(!empty($experience))
									@foreach($experience as $k=>$v)	
									<tr>
										<td>{{$v->scale}}</td>
										<td>{{$v->access}}</td>
										<td>{{date('Y-m-d',$v->time)}}</td>
										<td>30天</td>
									</tr>
									@endforeach
									@endif
									</tbody>
								</table>
							</div>
							<div class="pass-cont hint-table">
								<table>
									<thead>

									<tr>
										<td>金额（元）</td>
										<td>获取途径</td>
										<td>使用项目</td>
										<td>截止时间</td>
									</tr>
									</thead>
									<tbody>
									@if(!empty($withdraw))
										@foreach($withdraw as $k=>$v)
											<tr>
												<td>￥<span>{{$v->reward}}</span>元<p>满1000元抵{{$v->reward}}元</p></td>
												<td>{{$v->access}}</td>
												<td>{{$v->apply}}</td>
												<td>
													<?php
													if($v->statue==0){
														$data=date('Y-m-d',$v->time);
														$time2=strtotime(date('Y-m-d',strtotime("$data+ 30 day")));
														echo date('Y-m-d',$time2);
													}
													if($v->statue==1){
														echo "已经到期";
													}
													//echo  date('Y-m-d',$v->time);
													//echo strtotime("$v->time + 30 day");
														
													
													?>
												</td>
											</tr>
										@endforeach
									@endif
									</tbody>
								</table>
								<div class="how-hint">
									<div class="h-title">如何获取现金劵？</div>
									<div class="step-box">
										<div class="step step-1">
											<div class="left img-box"></div>
											<div class="right">
												<span class="h">邀请好友</span>
												<span class="p"><a href="/user_invite">立即让好友投资</a></span>
											</div>
										</div>
										<div class="step step-2">
											<div class="left img-box"></div>
											<div class="right">
												<span class="h">实名认证</span>
												<span class="p"><a href="/username_auth_one">完善自己的信息</a></span>
											</div>
										</div>
										<div class="step step-3">
											<div class="left img-box"></div>
											<div class="right">
												<span class="h">投资返劵</span>
												<span class="p"><a href="/project_list_ypt">投资多获取更多</a></span>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<!-- footer -->
@include('common.index_foot')
<script src="./resource/js/jquery-1.11.3.min.js"></script>
<script src="./resource/js/index.js"></script>
<script src="./resource/js/user.js"></script>

</body>
</html>